package com.qf.mapper;

import com.qf.pojo.Author;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AuthorMapper {
    @Insert("INSERT INTO authors(authorname,authordescription) VALUE (#{authorname},#{authordescription})")
    void addAuthor(Author author);

    @Select("select * from authors")
    List<Author> getAllAuthor();
}
